package serviceDefine;

import model.Book;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

public interface BookService extends Remote{
    public boolean add(Book b) throws RemoteException;
    public Book queryById(int bookId) throws RemoteException;
    public List<Book> queryByName(String name) throws RemoteException;
    public boolean delete(int bookId) throws RemoteException;
}
